<%@ Reference Page="~/special_page.aspx" %>
<%@ Reference Control="~/Controls/MusicTabs.ascx" %>
<%@ Page language="vb" Inherits="_2bMatesSite.view_all_news" CodeFile="view_all_news.aspx.vb" CodeFileBaseClass="_2bMatesSite.BaseWebPage" %>
<%@ Register tagprefix="MusicTabs" Tagname="MusicTabs" Src="Controls/MusicTabs.ascx" %>
<form id="Form1" method="post" runat="server">
	<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center" height="100%">
		<tr>
			<td class="page_title"><asp:literal id="litPageName" runat="server"></asp:literal></td>
		</tr>
		<tr>
			<td valign="top" width="100%" height="100%" class="main_table_border" align="center">
				<div class="content">					
					<table cellspacing="0" cellpadding="0" width="100%" border="0" height="100%" class="main_text">
						<tr id="trUserCanceledMessage" runat=server class="hidden">
							<td align=center height="20" colspan=5><asp:label id="lblErrMessageCanceled" runat=server cssclass="err_canceled_user">This member has cancelled their membership.</asp:label></td>
						</tr>
						<musictabs:musictabs id="ucMusicTabs" runat="server"></musictabs:musictabs>
						<tr>
							<td><asp:dropdownlist id="ddlQuarters" runat="server" cssclass="mail_field" width="205px" autopostback="true" onselectedindexchanged="ddlQuarters_SelectedIndexChanged"></asp:dropdownlist>&nbsp;</td>
						</tr>
						<tr>
							<td height="4" class="small">&nbsp;</td>
						</tr>
						<tr>
							<td valign="top" align="center" height="100%">
								<table cellspacing="0" cellpadding="0" width="100%" border="0">
									<tr id="trInterviewsList" runat=server>
										<td class="small">
											<table cellspacing=0 cellpadding=0 border=0 class="music_table" width="100%">
												<tr>
													<td class="title" height=19><b><asp:label id="lblBandInterviews" runat=server>Band Interviews</asp:label></b></td>
												</tr>
												<tr>
													<td class="items">
														<asp:datagrid id="dgMusicUsers" runat="server" autogeneratecolumns="False" gridlines="None" width="100%" pagerstyle-mode="NumericPages" pagerstyle-horizontalalign="Right" cellpadding="0" showheader="False">
															<itemstyle verticalalign="Top"></itemstyle>
															<columns>
																<asp:templatecolumn>
																	<itemstyle cssclass="data_grid"></itemstyle>
																	<itemtemplate>
																		<img src="images/spacer.gif" height=3 width=1><br>
																		<table cellspacing="0" cellpadding="0" width="100%" align=left border="0">
																			<tr>
																				<td width="15%" valign="top" class="main_text">
																					<img src="images/spacer.gif" height=3 width=1><br>
																					<asp:hyperlink id="hlMmeberNameUrl" runat=server navigateurl='<%# DataBinder.Eval(Container.DataItem, "MemberURL") %>' onclick='<%# DataBinder.Eval(Container.DataItem, "OnClickJS") %>' cssclass="main_text_bold"><%# DataBinder.Eval(Container.DataItem, "UserName") %></asp:hyperlink>&nbsp;<br>
																					<asp:hyperlink id=hlPhoto runat="server" cssclass="small_image" navigateurl='<%# DataBinder.Eval(Container.DataItem, "MemberURL") %>' imageurl='<%# DataBinder.Eval(Container.DataItem, "PhotoURL") %>' onclick='<%# DataBinder.Eval(Container.DataItem, "OnClickJS") %>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "UserName") %>'></asp:hyperlink>&nbsp;
																				</td>
																				<td class="small" valign="top" width="85%" align="left">
																					<table cellspacing="0" cellpadding="0" border="0" width="100%" class="main_text">
																						<tr>
																							<td>
																								<b><asp:hyperlink id="hlTitle" runat="server" navigateurl='<%# DataBinder.Eval(Container.DataItem, "NewsURL") %>' cssclass="main_text_bold"><%# DataBinder.Eval(Container.DataItem, "InterviewTitle") %></asp:hyperlink></b><br>
																								<i><asp:label id="lblSubtitle" runat="server"><%# DataBinder.Eval(Container.DataItem, "InterviewSubtitle") %></asp:label></i>																
																							</td>
																						</tr>
																						<tr>
																							<td>
																								<br /><pre wrap style="WORD-WRAP:break-word;margin-bottom:0px"><asp:hyperlink id=Hyperlink1 runat="server" navigateurl='<%# DataBinder.Eval(Container.DataItem, "NewsURL") %>' cssclass="main_text"><%# DataBinder.Eval(Container.DataItem, "InterviewContent") %></asp:hyperlink></pre>
																								<asp:hyperlink id="hlEditInterview" runat="server" visible='<%# DataBinder.Eval(Container.DataItem, "EditLinkVisibility") %>' navigateurl='<%# DataBinder.Eval(Container.DataItem, "EditLink") %>' font-bold="True" cssclass="main_text_bold">Edit</asp:hyperlink>
																								<asp:linkbutton id="lbDeleteInterview" runat="server" visible='<%# DataBinder.Eval(Container.DataItem, "EditLinkVisibility") %>' commandargument='<%# DataBinder.Eval(Container.DataItem, "NewsID") %>' commandname="DeleteNews" font-bold="True" cssclass="main_text_bold">Delete</asp:linkbutton>														
																							</td>
																						</tr>	
																					</table>
																				</td>
																			</tr>
																			<tr>
																				<td class="small" colspan="2"><img src="images/spacer.gif" width="100%" height=1 class="spacer_color"></td>
																			</tr>
																		</table>
																	</ItemTemplate>
																</asp:TemplateColumn>
															</Columns>
														</asp:datagrid>
														<asp:label id="lblNoArticleItems" runat="server" cssclass="main_text"  visible="False"><br>No interviews added</asp:label>
														<asp:hyperlink id="hlAddInterviews" runat="server" cssclass="main_text_bold">Add interviews</asp:hyperlink>
													</td>
												</tr>
											</table>
										</td>
									</tr>
									<tr id="trNewsList" runat=server>
										<td>
											<table cellspacing=0 cellpadding=0 border=0 class="music_table" width="100%">
												<tr>
													<td class="title" height=19><b><asp:label id="lblNews" runat=server>News &amp; Reviews</asp:label></b></td>
												</tr>	
												<tr>
													<td class="items">
														<asp:datagrid id="dgNewsItems" runat="server" autogeneratecolumns="False" gridlines="None" width="100%" pagerstyle-mode="NumericPages" pagerstyle-horizontalalign="Right" cellpadding="0" showheader="False">
															<itemstyle verticalalign="Top"></ItemStyle>
															<columns>
																<asp:templatecolumn>
																	<itemstyle cssclass="data_grid"></ItemStyle>
																	<itemtemplate>
																		<img src="images/spacer.gif" height=3 width=1><br>
																		<table cellspacing="0" cellpadding="0" width="100%" border="0" class="main_text">
																			<tr>
																				<td valign="top" align="left"><b>
																						<asp:hyperlink id="hlNewsTitle" runat="server" navigateurl='<%# DataBinder.Eval(Container.DataItem, "FullTextLinkURL") %>' cssclass="main_text_bold">
																							<%# DataBinder.Eval(Container.DataItem, "NewsTitle") %>
																						</asp:hyperlink></b><br>
																					<i>
																						<asp:label id="lblNewsSubtitle" runat="server">
																							<%# DataBinder.Eval(Container.DataItem, "NewsSubtitle") %>
																						</asp:label></i>
																					<br>
																				</td>
																			</tr>
																			<tr>
																				<td valign="top">
																					<br /><pre wrap style="WORD-WRAP:break-word;margin-bottom:0px"><asp:hyperlink id=hlNewsMore runat="server" navigateurl='<%# DataBinder.Eval(Container.DataItem, "FullTextLinkURL") %>' cssclass="main_text">
																						<%# DataBinder.Eval(Container.DataItem, "NewsText") %>
																					</asp:hyperlink></pre>
																					<asp:hyperlink id=hlEdit runat="server" visible='<%# DataBinder.Eval(Container.DataItem, "EditLinkVisibility") %>' navigateurl='<%# DataBinder.Eval(Container.DataItem, "EditLink") %>' font-bold="True" cssclass="main_text_bold">Edit</asp:hyperlink>
																					<asp:linkbutton id=lbDelete runat="server" visible='<%# DataBinder.Eval(Container.DataItem, "EditLinkVisibility") %>' commandname="DeleteNews" commandargument='<%# DataBinder.Eval(Container.DataItem, "NewsID") %>' font-bold="True" cssclass="main_text_bold">Delete</asp:linkbutton>
																				</td>
																			</tr>
																			<tr>
																				<td><img src="images/spacer.gif" height=3 width=1><br><img src="images/spacer.gif" width="100%" height="1" class="spacer_color"></td>
																			</tr>
																		</table>
																	</ItemTemplate>
																</asp:templatecolumn>
															</Columns>
															<pagerstyle verticalalign="Top" visible="False" horizontalalign="Right" mode="NumericPages"></PagerStyle>
														</asp:datagrid>
														<asp:label id="lblNoNewsItems" runat="server" cssclass="main_text"  visible="False"><br>No news added<br><br></asp:label>
														<asp:hyperlink id="hlAddNews" runat="server"  cssclass="main_text_bold">Add news</asp:hyperlink>
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</div>
			</td>
		</tr>		
	</table>
</form>
